﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xiezl.Common.Repositorys;

namespace Xiezl.Common.Entity
{
    /// <summary>
    /// 数据库处理基类
    /// </summary>
    /// <typeparam name="TEntity">数据库查询实体</typeparam>
    public class Repository<TEntity> : EFRepository<TEntity, TestDbContext> where TEntity : class
    {
        /// <summary>
        /// 实例化数据库处理基类
        /// </summary>
        public Repository()
        {

        }
    }

    /// <summary>
    /// 数据库处理基类
    /// </summary>
    /// <typeparam name="TEntity">数据库查询实体</typeparam>
    /// <typeparam name="TPkType">实体主键类型</typeparam>
    public class Repository<TEntity, TPkType> : EFRepository<TEntity, TPkType, TestDbContext> where TEntity : class, IEntity<TPkType>
    {
        /// <summary>
        /// 实例化数据库处理基类
        /// </summary>
        public Repository()
        {

        }
    }
}
